package com.daocao.yfb.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import butterknife.BindView;
import butterknife.ButterKnife;
import com.daocao.yfb.R;


/**
 * Created by xsooy-pc on 2017/10/23.
 */

public class MainIconAdapter extends ItemAdapter<String, MainIconAdapter.DefaultHolder> {



    public MainIconAdapter(Context context) {
        super(context);
    }

    @Override
    public DefaultHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return new DefaultHolder(inflate(R.layout.item_icon_main, parent));
    }

    @Override
    public void onBindViewHolder(DefaultHolder holder, int position) {

    }

    class DefaultHolder extends RecyclerView.ViewHolder {
        @BindView(R.id.img_icon)
        ImageView imgIcon;
        @BindView(R.id.txt_name)
        TextView txtName;
        @BindView(R.id.txt_status)
        TextView txtStatus;
        public DefaultHolder(View itemView) {
            super(itemView);
            ButterKnife.bind(this, itemView);
        }
    }
}
